<?php

	//echo the client name for the current portfolio post
	function cdia_the_portfolio_client(){
		
		global $post;
		
		$portfolio_details = get_post_meta( $post->ID, CDIA_PORT_META_KEY, true );
		
		if( $portfolio_details == false ) {
			
			return;
			
		} else {
			
			echo $portfolio_details['client_name']; 
			
			}
		
		}
	//echo the year for the current portfolio post
	function cdia_the_portfolio_year(){
		
		global $post;
		
		$portfolio_details = get_post_meta( $post->ID, CDIA_PORT_META_KEY, true );
		
		if( $portfolio_details == false ) {
			
			return;
			
		} else {
			
			echo $portfolio_details['year']; 
			
			}
		
		}
		
	//echo the url for the current portfolio post
	function cdia_the_portfolio_url(){
		
		global $post;
		
		$portfolio_details = get_post_meta( $post->ID, CDIA_PORT_META_KEY, true );
		
		if( $portfolio_details == false ) {
			
			return;
			
		} else {
			
			echo $portfolio_details['url']; 
			
			}
		
		}
		
	//echo the cms for the current portfolio post
	function cdia_the_portfolio_cms(){
		
		global $post;
		
		$portfolio_details = get_post_meta( $post->ID, CDIA_PORT_META_KEY, true );
		
		if( $portfolio_details == false ) {
			
			return;
			
		} else {
			
			echo $portfolio_details['cms']; 
			
			}
		
		}

?>